package com.woniuxy.microsystemuapserver.service.impl;

import com.woniuxy.microsystemuapserver.bean.RoleBean;
import com.woniuxy.microsystemuapserver.mapper.RoleMapper;
import com.woniuxy.microsystemuapserver.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: huhenggg
 * @Date: 2021/1/26 0026 下午 2:03
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Resource
    private RoleMapper roleMapper;

    /**
     * 添加角色
     * @param roleBean
     * @return
     */
    @Override
    public int addRole(RoleBean roleBean) {
        return roleMapper.addRole(roleBean);
    }

    @Override
    public int updateRole(RoleBean roleBean) {
        return roleMapper.updateRole(roleBean);
    }
}
